<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul,ol {
            list-style: none;
        }
        .lunbo {
            width: 880px;
            height: 550px;
            position: relative;
            border: 1px solid #333;
            margin: 20px auto;
        }
        .lunbo .pic li {
            position: absolute;
            top: 0;
            left: 0;
            width: 880px;
            height: 550px;
            display: none;
        }
        .lunbo .pic .current {
            display: block;
        }
        .lunbo .btn a {
            position: absolute;
            top: 50%;
            background-color: rgba(255, 255, 255, 0.3);
            width: 40px;
            height: 40px;
            font: 20px/40px "宋体";
            text-align: center;
            color: #fff;
            text-decoration: none;
            font-weight: bold;
        }
        .lunbo .btn a:hover {
            background-color: rgba(255, 255, 255, 0.6);
        }
        .lunbo .btn .leftbtn {
            left: 30px;
        }
        .lunbo .btn .rightbtn {
            right: 30px;
        }

        .lunbo .sub {
            position:absolute;
            left: 100px;
            bottom: 50px;
            width: 240px;
        }

        .lunbo .sub li {
            width: 20px;
            height: 20px;
            margin-left: 20px;
            text-align: center;
            font: 12px/20px "微软雅黑";
            background-color: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            float: left;   
        }
        .lunbo .sub .current {
            background-color: rgba(255, 255, 255, 1);
        }


    </style>
</head>
<body>
    <div class="lunbo">
        <ul class="pic">
            <li class="current"><img src="./images/lunbo/c1.jpg" alt=""></li>
            <li><img src="./images/lunbo/c2.jpg" alt=""></li>
            <li><img src="./images/lunbo/c3.jpg" alt=""></li>
            <li><img src="./images/lunbo/c4.jpg" alt=""></li>
            <li><img src="./images/lunbo/c5.jpg" alt=""></li>
        </ul>
        <div class="btn">
            <a href="javascript:;" class="leftbtn">&lt;</a>
            <a href="javascript:;" class="rightbtn">&gt;</a>
        </div>
        <ol class="sub">
            <li class="current">1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
        </ol>
    </div>
</body>
</html>